<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Video Capture</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript">
function getflash(id, width, height, url, vars, transparent) {
	//Window | Opaque | Transparent
	var wmode = "";
	if (transparent == true) {
		wmode = "Transparent";
	} else if (transparent == false) {
		wmode = "Opaque";	
	}
	var html = '';
	html += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,124,0" ';
	html += 'width="'+width+'" ';
	html += 'height="'+height+'" ';
	html += 'id="'+id+'"';
	html += '>\n';
	html += '<param name="movie" value="'+url+'" />\n';
	html += '<param name="quality" value="high" />\n';
	html += '<param name="allowFullScreen" value="true" />\n';
	html += '<param name="allowScriptAccess" value="always" />\n';
	if (wmode) {html += '<param name="wmode" value="'+wmode+'"/>\n';}
	if (vars) {html += '<param name="flashvars" value="'+vars+'" />\n';}
	html += '<embed pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" ';
	html += 'width="'+width+'" ';
	html += 'height="'+height+'" ';
	html += 'name="'+id+'" ';
	html += 'src="'+url+'" ';
	html += 'quality="high"  ';
	html += 'allowfullscreen="true" ';
	html += 'allowscriptaccess="always" ';
	if (wmode) {html += 'wmode="'+wmode+'" ';}
	if (vars) {html += 'flashvars="'+vars+'" '}
	html += '></embed>\n';
	html += '</object>';
	return html;
}
</script>
<style type="text/css">
html, body { height:100%; margin:0px 0px; text-align:center; background:#333333; }
</style>
</head>
<body>
<script type="text/javascript">
var vars = "url=config.xml";
document.write(getflash("flip","1000","600","main.swf",vars));
</script>
</body>
</html>
